import xxRequest from './service'
// 获取视频首页数据
export function getTopMv(offset, limit = 10) {
  return xxRequest.get('/top/mv', {
    offset,
    limit
  })
}
// 获取mv的播放地址
export function getMvUrl(id) {
  return xxRequest.get('/mv/url', {id})
}
// 获取Mv相关视频
export function getMvRelated (id) {
  return xxRequest.get('/related/allvideo',{id})
}
// 获取mv数据
export function getMvDetail (mvid) {
  return xxRequest.get('/mv/detail',{mvid})
}
// 根据 视频id获取播放路径
export function getVideoUrl(id) {
  return xxRequest.get('/video/url',{id})
}
